package com.itheima.FileTest;

import java.io.*;

public class BUfferTest {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("D:\\传智黑马javaEE开发习题答案\\练习\\Test03.java"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("D:\\传智黑马javaEE开发习题答案\\练习2\\Test03.java"));

        byte[] bytes = new byte[1024];
        int len;
        while((len = bis.read(bytes)) != -1){
            bos.write(bytes,0,len);
        }

        bis.close();
        bos.close();


    }
}
